package com.domain.duinocontrolmotor.model;

import com.domain.duinocontrolmotor.util.Constants;

public class ArduinoDevice {

	private String nomeBluetooth;

	private String addressBluetooth;

	private TBlue bluetooth;

	private int skipped;

	private float axisX;

	private float axisY;

	private float axisZ;

	private float servoSteering;

	public String getNomeBluetooth() {
		return nomeBluetooth;
	}

	public void setNomeBluetooth(String nomeBluetooth) {
		this.nomeBluetooth = nomeBluetooth;
	}

	public String getAddressBluetooth() {
		return addressBluetooth;
	}

	public void setAddressBluetooth(String addressBluetooth) {
		this.addressBluetooth = addressBluetooth;
	}

	public int getSkipped() {
		return skipped;
	}

	public void setSkipped(int skipped) {
		this.skipped = skipped;
	}

	public TBlue getBluetooth() {
		return bluetooth;
	}

	public void setBluetooth(TBlue bluetooth) {
		this.bluetooth = bluetooth;
	}

	public float getAxisX() {
		return axisX;
	}

	public void setAxisX(float axisX) {
		this.axisX = axisX;
	}

	public float getAxisY() {
		return axisY;
	}

	public void setAxisY(float axisY) {
		this.axisY = axisY;
	}

	public float getAxisZ() {
		return axisZ;
	}

	public void setAxisZ(float axisZ) {
		this.axisZ = axisZ;
	}

	public float getServoSteering() {
		return servoSteering;
	}

	public void setServoSteering(float servoSteering) {
		this.servoSteering = servoSteering;
	}

	// Default viene collegato il bluetooth ARDUINO
	public ArduinoDevice() {
		super();
		this.nomeBluetooth = Constants.DEVICE_NAME_ARDUINO;
		this.addressBluetooth = Constants.ADDRESS_BLUETOOTH_DEVICE_ARDUINO;
		this.skipped = 0;
		this.bluetooth = null;
		this.axisX = 0;
		this.axisY = 0;
		this.axisZ = 0;
		this.servoSteering = 4;
	}

	// public ArduinoDevice() {
	// super();
	// this.nomeBluetooth = Constants.DEVICE_NAME_ARDUINO;
	// this.addressBluetooth = Constants.ADDRESS_BLUETOOTH_DEVICE_ARDUINO;
	// this.velocity = Constants.SLOW_VELOCITY;
	// this.left = null;
	// this.right = null;
	// this.bluetooth = new TBlue(this.nomeBluetooth);
	// }
}
